<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript" src="<?php echo JS_PATH?>jquery.sgallery.js"></script>
<div class="pad-lr-10">
<?php 
switch (@$search_info['resource']){
    case 1:
        $reminder_info='所录资讯数量';
        break;
    case 2:
        $reminder_info='所录视频数量';
        break;
    case 3:
        $reminder_info='所录图集数量';
        break;
    default:
        $reminder_info='所录资源数量';
        break;
}
?>
<form name="searchform" action="" method="get">
		<input type="hidden" value="account" name="m"> 
		<input type="hidden" value="manage" name="c"> 
		<input type="hidden" value="init" name="a">
		<table width="100%" cellspacing="0" class="search-form">
			<tbody>
				<tr>
					<td>
						<div class="explain-col">
							<?php echo L('category')?>:
							<?php echo form::select($category_arr,$search_info['resource'],'name="account[resource]"','全部')?>
							&nbsp;&nbsp;&nbsp;
							<?php echo L('time')?>:
							<?php echo form::date('account[begin_time]',$search_info['begin_time'],1);?>--- &nbsp;<?php echo form::date('account[end_time]',$search_info['end_time'],1);?>
							<input type="submit" value="<?php echo L('search')?>" class="button" name="dosubmit">
						</div>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
<div class="table-list">
<table width="100%" cellspacing="0">
	<thead>
		<tr>
			<th align="center">排序</th>
			<th align="center"><?php echo L('name')?></th>
			<th align="center"><?php echo $reminder_info;?></th>
		</tr>
	</thead>
<tbody>
<?php
if(!empty($account_info)){
	foreach($account_info as $k=>$v) {
?>
    <tr>
		<td align="center"><?php echo ($k+1);?></td>
		<td align="center"><?php echo $v['realname']?></td>
		<td align="center"><strong><?php echo $v['nums']?></strong>&nbsp;个</td>

    </tr>
<?php
	}
}else{
?>
	<tr><td colspan='4' style='color:red;font-size:18px;text-align:center;'><span>暂无数据！</span></td></tr>
<?php }?>
</tbody>
</table>

<div id="pages"><?php echo $pages?></div>
</div>
</div>
</body>
</html>